---
id: "new-decorator"
keywords: ["new", "decorator"]
name: "@new"
summary: "This is the `@new` decorator."
category: "decorators"
---

The `@new` decorator is used whenever you need to bind to a JavaScript
class constructor that requires the `new` keword for instantiation.

### Example

<CodeTab labels={["ReScript", "JS Output"]}>

```res
type t

@new external create: unit => t = "Date"

let now = create()
```

```js
var now = new Date();
```

</CodeTab>

### References

- [Bind to a JS Object That's a Class](../docs/manual/bind-to-js-object.mdx#bind-to-a-js-object-thats-a-class)
